home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / String.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  2.7 KB  |  18 lines

  1. class String
  2. {
  3.     var length                                                           // A nonzero-based integer specifying the number of characters in the specified string. 
  4.  
  5.     function charAt(index)                                               // Returns the character at the position specified by the "index" parameter, or returns an empty string if "index" is not a number from 0 to "string.length - 1".
  6.     function charCodeAt(index)                                           // Returns a 16-bit integer from 0 to 65535 that represents the character specified by the "index" parameter, or returns "NaN" if "index" is not a number from 0 to "string.length - 1".
  7.     function concat(value)                                               // Combines the value of the String object with the values in the parameters and returns the newly formed string; the original value, my_str, is unchanged.
  8.     function fromCharCode(c)                                             // Returns a string made up of the characters represented by the ASCII values in the parameters.
  9.     function indexOf(substring, startIndex)                              // Returns the position of the first occurrence of substring found at or after "startIndex" within the calling string, or returns -1 if "substring" is not found.
  10.     function lastIndexOf(substring, startIndex)                          // Searches the string from right to left and returns the index of the last occurrence of "substring" found before "startIndex" within the calling string, or returns -1 if "substring" is not found.
  11.     function slice(start, end)                                           // Returns a string that includes the "start" character and all characters up to the "end" character(not including it). 
  12.     function split(delimiter, limit)                                     // Splits a String object into substrings by breaking it where the specified "delimiter" parameter occurs, and returns the substrings in an array. 
  13.     function substr(start, length)                                       // Returns the characters in a string from the starting point specified in the "start" parameter through the number of characters specified in the "length" parameter. 
  14.     function substring(start, end)                                       // Returns a string consisting of the characters between the points specified by the "start" and "end" parameters. 
  15.     function toLowerCase()                                               // Returns a string, with all of the uppercase characters converted to lowercase. The original value is unchanged.
  16.     function toUpperCase()                                               // Returns a string, with all of the lowercase characters converted to uppercase. The original value is unchanged.
  17. }
  18.